<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>宜鲜生</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <!-- load css -->
    <link rel="stylesheet" type="text/css" href="../css/bootstrap.min.css?v=v3.3.7" media="all">
    <link rel="stylesheet" type="text/css" href="../css/font/iconfont.css?v=1.0.0" media="all">
    <link rel="stylesheet" type="text/css" href="../css/layui.css?v=1.0.9" media="all">
    <link rel="stylesheet" type="text/css" href="../css/main.css?v1.3.4" media="all">
</head>
<body>
    <div class="container-fluid larry-wrapper">
        <div class="row">
            <div class="col-xs-12 col-sm-12 col-md-12">
                <!--头部搜索-->
                <section class="panel panel-padding">
                    <form class="layui-form" action="/education/admin/enterprise/stats">
                        <div class="layui-form">
                            <div class="layui-inline">
                                <select name="_query.areaid" lay-filter="area">
                                    <option value="">区县</option>
                                </select>
                            </div>
                            <div class="layui-inline">
                                <select name="_query.streetid">
                                    <option value="">街道办</option>
                                </select>
                            </div>
                            <div class="layui-inline">
                                <div class="layui-input-inline">
                                    <select name="_query.month" id="month">
                                        <option value="">月份</option>
                                    </select>
                                </div>
                            </div>

                            <div class="layui-inline">
                                <div class="layui-input-inline">
                                    <input class="layui-input" name="_query.keyword" placeholder="关键字">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <button lay-submit class="layui-btn" lay-filter="search">查找</button>
                            </div>
                        </div>
                    </form>
                </section>

                <!--列表-->
                <section class="panel panel-padding">

                    <div id="list" class="layui-form"></div>

                    <div class="text-right" id="page"></div>
                </section>
            </div>
        </div>
    </div>
    <script id="list-tpl" type="text/html"
            data-params='{"url":"/education/admin/enterprise/stats","dataName":"epStatsData","pageid":"#page", "method":"post"}'>
        <table id="example" class="layui-table lay-even" data-name="propertyData" data-tplid="list-tpl">
            <thead>
            <tr>
                <th width="30"><input type="checkbox" id="checkall" data-name="checkbox" lay-filter="check"
                                      lay-skin="primary"></th>
                <th width="250">综合体名称</th>
                <th>新增</th>
                <th>关停</th>
                <th>被举报（次）</th>
            </tr>
            </thead>
            <tbody>
            {{# layui.each(d.list, function(index, item){ }}
            <tr>
                <td><input type="checkbox" name="checkbox" value="{{ item.ids}}" lay-skin="primary"></td>
                <td>{{# if(item.name == null){ }} {{#  } else { }} {{ item.name }} {{#  } }}</td>
                <td>{{# if(item.addNum == null){ }} {{#  } else { }} {{ item.addNum }} {{#  } }}</td>
                <td>{{# if(item.closeNum == null){ }} {{#  } else { }} {{ item.closeNum}}  {{#  } }}</td>
                <td>{{# if(item.reportNum == null){ }} {{#  } else { }} {{ item.reportNum}}  {{#  } }}</td>
            </tr>
            {{# }); }}
            </tbody>

        </table>
    </script>

</body>
<script src="../js/layui/layui.js"></script>
<!--#include file="common/version.html"-->
<script type="text/javascript" src="../js/lib/jquery-1.11.2.min.js"></script>
<script>
    layui.extend({ //设定模块别名
        area_select:'../module/js/area_select'
    });
    layui.use('user_list');
    layui.use('area_select');

    layui.define('jquery', function(exports){
        var $ = layui.jquery;
        var arr = ['<option value="">月份</option>'];
        var now = new Date();
        for(var i=2017; i<=now.getFullYear(); i++){
            for(var j=1; j<= (i==2017 ? now.getMonth()+1 : 12 ); j++){
                var _v = i + '' + (j < 10 ? ('0' + j) : j);
                var v = i + '年' + j + '月';
                arr.push('<option value="'+_v+'">' + v + '</option>');
            }
        }
        $('#month').html(arr.join(''));
    });

</script>

</html>